<?php
/*
# ------------------------------------------------------------------------
# JD Base Theme
# ------------------------------------------------------------------------
# Copyright (C) 2004-2010 JoomlArt.com. All Rights Reserved.
# @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
# Author: JoomlArt.com
# Websites: http://www.joomlart.com - http://www.joomlancers.com.
# ------------------------------------------------------------------------
*/
$themes = $T3Cpanel->getThemes();

$curThemes = $T3Profile->getThemes();
?>

<h3><?php echo t('Change Themes')?></h3>

<div class="ja-box-usertools">
  <ul class="ja-usertools-theme clearfix">
  <?php foreach ($themes as $theme=>$theme_info) : ?>
  	<li class="theme theme-<?php echo str_replace('.','-',$theme).(in_array($theme, $curThemes)?'-active':'') ?>">
  	<input type="checkbox" id="user_themes_<?php echo $theme ?>" name="user_themes" value="<?php echo $theme ?>" <?php echo in_array($theme, $curThemes)?'checked':'' ?> />
  	<label for="user_themes_<?php echo $theme ?>" title=""><span><?php echo $theme ?></span>
  	</label></li>
  <?php endforeach; ?>
  </ul>
</div>